package org.HU.train.batch.feign;

import org.HU.train.common.response.CommonResp;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @Author ZUZ
 * @Description: 熔断后的降级处理
 *               这个类不仅会给sentinel用，当business模块本身异常时，feign也会用这个作降级处理
 * @Date 2024-12-26 14:28
 * @ClassName: BusinessFeignFallback
 */
@Component
public class BusinessFeignFallback implements BusinessFeign {
    @Override
    public String hello() {
        return "Fallback";
    }

    @Override
    public CommonResp<Object> genDaily(Date date) {
        return null;
    }
}
